Xbasic

CREATE_SHADOW2 Function

Syntax

V create_shadow2(C shadow_db_name [,L open_shadow [,L allow_overwrite_of_current_db ]])

Arguments

shadow_db_name

The name of the shadow database to create.

open_shadow

Logical. Optional. Default = .T., .T. = Open the shadow database at the end of the process. .F. = Do not open the shadow database.

allow_overwrite_of_current_db

Logical. Optional. Default = .F., .T. = Overwrite the current database with the shadow database. There is one situation when this is necessary: when the current database is a special "bootstrap" database. For more information on "bootstrap" databases, see Preparing a Runtime Installation to use a Shadow Database. .F. = Alpha Anywhere will not allow you to specify a shadow database name which is the same as the current database name. This is to help prevent a catastrophic error that will result in the loss of the current database if you overwrite the current database when creating a shadow database.

Description

Create a Network Optimized version of the current database. An improved version of create_shadow(). Only available in V6 or above.

Discussion

CREATE_SHADOW2() creates a shadow database (i.e. a Network Optimized database). This is the same as using the Tools > Network Optimize... command. A Network Optimized database stores the data dictionaries (i.e. the forms, reports, scripts, etc.) on the user's local hard drive, while keeping the data on the shared network hard drive.

Limitations

Desktop applications only.

See Also